<?php
if (!defined('NV_SYSTEM')) { die ("You can't access this file directly..."); }

include("includes/data/nvm_skin.php");
 if($activnvmenu == 1) {
function testcmenu($menu_id, $menu_inmodule, $menu_incatid, $menu_addlink, $menu_subid, $menu_submenu) {
 global $prefix, $db, $nv;
 include("includes/data/nvm_skin.php");
    $urlclient = $_SERVER['QUERY_STRING'];
    if(isset($_GET['cid'])) { $tcid = intval($_GET['cid']); }
    elseif(isset($_POST['cid'])) { $tcid = intval($_POST['cid']); }
    elseif(isset($_GET['catid'])) { $tcid = intval($_GET['catid']); }
    elseif(isset($_POST['catid'])) { $tcid = intval($_POST['catid']); }

    $mdefault = explode("|",$mdefault);

    $ur = "";
    if($menu_inmodule!="" AND $menu_addlink!="") {
    	$ur .= "nv=".$menu_inmodule."".$menu_addlink."";
    }

    $tmenu = 0;
    	if($menu_inmodule=="home" AND $menu_addlink=="" AND $urlclient=="") { $tmenu = 1; }
    	elseif($ur!="" AND eregi("$ur", $urlclient)) { $tmenu = 1; }
    	elseif($menu_inmodule=="$nv" AND $tcid!="0" AND $menu_incatid=="$tcid") { $tmenu = 1; }
    	elseif($menu_inmodule=="$nv" AND $urlclient!="" AND $menu_incatid=="0" AND $menu_addlink=="") { $tmenu=1; }
    	elseif($nv=="News" AND $menu_inmodule=="$nv" AND $urlclient!="" AND isset($_GET['sid'])) {
    	$n_sid = intval($_GET['sid']);
    	list($n_catid) = $db->sql_fetchrow($db->sql_query("SELECT catid FROM ".$prefix."_stories WHERE sid = '$n_sid'"));
    		if($menu_incatid=="$n_catid") { $tmenu = 1; }
    	}
    	elseif($nv=="Files" AND $menu_inmodule=="$nv" AND $urlclient!="" AND isset($_GET['id'])) {
    	$f_id = intval($_GET['id']);
    	list($f_catid) = $db->sql_fetchrow($db->sql_query("SELECT cid FROM ".$prefix."_files WHERE id = '$f_id'"));
    		if($menu_incatid=="$f_catid") { $tmenu = 1; }
    	}
    	elseif(in_array($menu_id,$mdefault) AND $menu_subid=='0' AND $urlclient=="") { $tmenu = 1; }

    	if($tmenu != 1 AND $menu_submenu!="") {

    	$xmenu_submenu = explode("|",$menu_submenu);
    	$resultxyz = $db->sql_query("SELECT id, in_module, in_catid, addlink, sub_id, submenu FROM ".$prefix."_nvmenu WHERE sub_id = '$menu_id'");
    	while (list($menu_id2, $menu_inmodule2, $menu_incatid2, $menu_addlink2, $menu_subid2, $menu_submenu2) = $db->sql_fetchrow($resultxyz)) {
    	$tmenu = testcmenu($menu_id2, $menu_inmodule2, $menu_incatid2, $menu_addlink2, $menu_subid2, $menu_submenu2);
    	if($tmenu == 1) { break; }
    	}
	}

return $tmenu;
}

function htsubmenu($code,$menu_id,$val) {
Global $adminfold, $adminfile, $prefix, $db;
include("includes/data/nvm_skin.php");
if($val==0) { $xpopupdirection = $popupdirection; $xxcoordinate = $xcoordinate; $xycoordinate = $ycoordinate; $val = 2; }
//elseif($val == 1) { $xpopupdirection = 1; $xxcoordinate = 20; $xycoordinate = 10; $val = 2; }
//elseif($val==2) { $xpopupdirection = 2; $xxcoordinate = -10; $xycoordinate = 10; $val = 1; }
elseif($val==2) { $xpopupdirection = 2; $xxcoordinate = -30; $xycoordinate = 0; $val = 2; }//Neu bat 2 cai tren thi dong cai nay
echo "stm_bpx(\"p".$code."\",\"p0\",[".$displaysubmenu.",".$xpopupdirection.",".$xxcoordinate.",".$xycoordinate.",0,0,5,0,100,\"\",-2,\"\",-2,60,0,0,\"#000000\",\"transparent\"]);\n";
$p = 0;
$crresult = $db->sql_query("select * from ".$prefix."_nvmenu where sub_id='".$menu_id."' order by weight");
while($crrow = $db->sql_fetchrow($crresult)) {
$popupid = $crrow['id'];
$popuptitle = $crrow['title'];
$popupurl = $crrow['urlmenu'];
$popupinmod = $crrow['in_module'];
$popupincid = $crrow['in_catid'];
$popupaddlink = $crrow['addlink'];
$popuptarget = $crrow['target'];
$popupsubmenu = $crrow['submenu'];

$popuplink = "".$popupurl."";
    	if($popupinmod!="") {
    		if($popupinmod=="home") { $popuplink = "index.php"; }
    		elseif($popupinmod=="admin") { $popuplink = "".$adminfold."/".$adminfile.".php"; }
    		else {
    			$popuplink = "modules.php?name=".$popupinmod."";
    			if($popupinmod=="News" AND $popupincid!="0") {
    				$popuplink .= "&op=viewcat&catid=".$popupincid."";
    			} elseif($popupinmod=="Files" AND $popupincid!="0") {
    				$popuplink .= "&fc=cat&cid=".$popupincid."";
    			}
    		}
    		$popuplink .= "".$popupaddlink."";
    	}
if($popuptarget==0) { $popuptarget = "_self"; } elseif($popuptarget==1) { $popuptarget = "_blank"; }
echo "stm_aix(\"p".$code."i".$p."\",\"p0i0\",[0,\"".$popuptitle."\",\"\",\"\",-1,-1,0,\"".$popuplink."\",\"".$popuptarget."\",\"\",\"\",\"".$imgleft_p2n."\",\"".$imgleftover_p2n."\",".$imglwidth_p2n.",".$imglheight_p2n.",0,\"".$imgright_p2n."\",\"".$imgrightover_p2n."\",".$imgrwidth_p2n.",".$imgrheight_p2n.",0,".$textalignx_p2n.",".$textaligny_p2n.",\"".$bgcolorout_p2n."\",0,\"".$bgcolorover_p2n."\",0,\"".$bgimage_p2n."\",\"".$bgimageover_p2n."\",3,3,".$borderstyle_p2n.",".$borderwidth_p2n.",\"".$bordertop_p2n." ".$borderright_p2n." ".$borderbot_p2n." ".$borderleft_p2n."\",\"".$bordertopover_p2n." ".$borderrightover_p2n." ".$borderbotover_p2n." ".$borderleftover_p2n."\",\"".$fontcolorout_p2n."\",\"".$fontcolorover_p2n."\",\"".$fontsizestyle_p2n."\",\"".$fontsizestyleover_p2n."\",0,0],".$itemwidth_p2n.",".$itemheight_p2n.");\n";
if($displaymenu ==0) {
if($popupsubmenu!="") {
$code++;
$code = htsubmenu($code,$popupid,$val);
}
}
$p++;
}
echo "stm_ep();\n";
return $code;
}

    global $adminfold, $adminfile, $prefix, $db, $currentlang, $user, $admin;

    $menulang = "WHERE (view_lang='$currentlang' OR view_lang='')";
    $checkmenu = $db->sql_query("SELECT * FROM ".$prefix."_nvmenu $menulang ORDER BY weight");
    $l = 0;
    $menuchinh = "";
    $idmenuchinh = "";
    $menuphu = "";
    while ($rowmenu = $db->sql_fetchrow($checkmenu)) {
    	$menu_id[$l] = $rowmenu['id'];
    	$menu_title[$l] = $rowmenu['title'];
    	$menu_inmodule[$l] = $rowmenu['in_module'];
    	$menu_incatid[$l] = $rowmenu['in_catid'];
    	$menu_addlink[$l] = $rowmenu['addlink'];
    	$menu_urlmenu[$l] = $rowmenu['urlmenu'];
    	$menu_cdescription[$l] = $rowmenu['cdescription'];
    	$menu_subid[$l] = $rowmenu['sub_id'];
    	$menu_weight[$l] = $rowmenu['weight'];
    	$menu_view[$l] = $rowmenu['view'];
    	$menu_groups[$l] = $rowmenu['groups'];
    	$menu_submenu[$l] = $rowmenu['submenu'];
    	$menu_target[$l] = $rowmenu['target'];

    	$tmenu[$l] = testcmenu($menu_id[$l], $menu_inmodule[$l], $menu_incatid[$l], $menu_addlink[$l], $menu_subid[$l], $menu_submenu[$l]);

	$idmenuchinh_array = explode("|",$idmenuchinh);
    	$menuphu_array = explode("|",$menuphu);

    	$tpmenu[$l] = 0;

    	if(($menu_view[$l] == 0) || ($menu_view[$l] == 1 AND is_user($user)) || ($menu_view[$l] == 2 AND is_admin($admin)) || ($menu_view[$l] == 3 AND !is_user($user)) || ($menu_view[$l] > 3 AND in_groups($menu_groups[$l]))) {
    	if($displaymenu==1) {
    	if(($menu_subid[$l] == '0') OR (in_array($menu_id[$l],$menuphu_array))) {
    		if($menuchinh == "") { $menuchinh .= "".$l.""; } else { $menuchinh .= "|".$l.""; }
    		if($menu_subid[$l] == '0') { if($idmenuchinh == "") { $idmenuchinh .= "".$menu_id[$l].""; } else { $idmenuchinh .= "|".$menu_id[$l].""; }}
    		if($menu_submenu[$l]!="" AND $tmenu[$l]==1) {
    		$xmenu_submenu = explode("|",$menu_submenu[$l]);
    		for($x=0;$x < sizeof($xmenu_submenu);$x++) {
    		if($menuphu == "") { $menuphu .= "".$xmenu_submenu[$x].""; } else { $menuphu .= "|".$xmenu_submenu[$x].""; }
    		}
    		}
    	}
    	} else {
    		if($menu_subid[$l] == '0') {
    		if($menuchinh == "") { $menuchinh .= "".$l.""; } else { $menuchinh .= "|".$l.""; }
    		if($idmenuchinh == "") { $idmenuchinh .= "".$menu_id[$l].""; } else { $idmenuchinh .= "|".$menu_id[$l].""; }
    		if($menu_submenu[$l]!="" AND $tmenu[$l]==1) {
    		$xmenu_submenu = explode("|",$menu_submenu[$l]);
    		for($x=0;$x < sizeof($xmenu_submenu);$x++) {
    		if($menuphu == "") { $menuphu .= "".$xmenu_submenu[$x].""; } else { $menuphu .= "|".$xmenu_submenu[$x].""; }
    		}
    		}
    		}
    	}
	}

    	if($menu_subid[$l] == '0' AND $tmenu[$l]==1) {//chinh+activ
    		$mauhienthi[$l] = "ca";
    	} elseif($menu_subid[$l] == '0' AND $tmenu[$l]==0) {//chinh+noactiv
    		$mauhienthi[$l] = "cn";
    	} elseif($menu_subid[$l] != '0' AND in_array($menu_subid[$l],$idmenuchinh_array) AND $tmenu[$l]==1) {//phu1+activ
    		$mauhienthi[$l] = "p1a";
    	} elseif($menu_subid[$l] != '0' AND in_array($menu_subid[$l],$idmenuchinh_array) AND $tmenu[$l]==0) {//phu1+noactiv
    		$mauhienthi[$l] = "p1n";
    	} elseif($menu_subid[$l] != '0' AND !in_array($menu_subid[$l],$idmenuchinh_array) AND $tmenu[$l]==1) {//phu2+activ
    		$mauhienthi[$l] = "p2a";
    	} else {//phu2+noactiv
    		$mauhienthi[$l] = "p2n";
    	}

    	$menurl[$l] = "".$menu_urlmenu[$l]."";
    	if($menu_inmodule[$l]!="") {
    		if($menu_inmodule[$l]=="home") { $menurl[$l] = "index.php"; }
    		elseif($menu_inmodule[$l]=="admin") { $menurl[$l] = "".$adminfold."/".$adminfile.".php"; }
    		else {
    			$menurl[$l] = "modules.php?name=".$menu_inmodule[$l]."";
    			if($menu_inmodule[$l]=="News" AND $menu_incatid[$l]!="0") {
    				$menurl[$l] .= "&op=viewcat&catid=".$menu_incatid[$l]."";
    			} elseif($menu_inmodule[$l]=="Files" AND $menu_incatid[$l]!="0") {
    				$menurl[$l] .= "&fc=cat&cid=".$menu_incatid[$l]."";
    			}
    		}
    		$menurl[$l] .= "".$menu_addlink[$l]."";
    	}

    	$l++;
    }

/*##############trinhbay################*/

if($menuchinh!="") {
echo "<table border=\"0\" style=\"border-collapse: collapse\" cellpadding=\"0\" width=\"100%\"><tr><td>";

$xmenuchinh = explode("|",$menuchinh);

echo "<script type=\"text/javascript\" language=\"JavaScript1.2\" src=\"includes/javascripts/_pgtres/stm31.js\"></script>\n";
echo "<script id=\"Sothink Widgets:includes/javascripts/_pgtres\38623.1274189815_PageletServer.DynamicMenu.pgt\" type=\"text/javascript\" language=\"JavaScript1.2\">\n";
echo "<!--\n";
echo "stm_bm([\"menu2d21\",600,\"\",\"includes/javascripts/_pgtres/blank.gif\",".$dvmenu.",\"\",\"\",".$alignmenu.",".$clpopup.",".$deleytimey.",".$deleytimex.",".$hidesubtime.",1,0,0,\"\",\"\",0,0,1,0,\"default\",\"hand\",\"includes/javascripts/_pgtres/\"],this);\n";
echo "stm_bp(\"p0\",[".$displaymenu.",".$popupdirection.",".$xcoordinate.",".$ycoordinate.",0,0,5,7,100,\"".$effectshow."\",-2,\"".$effecthid."\",-2,90,0,0,\"#000000\",\"#FFFFFF\",\"\",0,0,0,\"\"]);\n";

$xx = 0;
for($x=0;$x < sizeof($xmenuchinh);$x++) {
$mlink = $menurl[$xmenuchinh[$x]];
$mtitle = "".$menu_title[$xmenuchinh[$x]]."";
$xmtarget = "".$menu_target[$xmenuchinh[$x]]."";
if($xmtarget==0) { $mtarget = "_self"; } elseif($xmtarget==1) { $mtarget="_blank"; }

if($mauhienthi[$xmenuchinh[$x]]=="ca") {
$textalignx = $textalignx_ca; $textaligny = $textaligny_ca; $bgcolorout = $bgcolorout_ca; $bgcolorover = $bgcolorover_ca; $borderstyle = $borderstyle_ca; $borderwidth = $borderwidth_ca; $bordertop = $bordertop_ca; $borderright = $borderright_ca; $borderbot = $borderbot_ca; $borderleft = $borderleft_ca;
$bordertopover = $bordertopover_ca; $borderrightover = $borderrightover_ca; $borderbotover = $borderbotover_ca; $borderleftover = $borderleftover_ca; $fontcolorout = $fontcolorout_ca; $fontcolorover = $fontcolorover_ca; $fontsizestyle = $fontsizestyle_ca; $fontsizestyleover = $fontsizestyleover_ca;
$itemwidth = $itemwidth_ca; $itemheight = $itemheight_ca; $imgleft = $imgleft_ca; $imgleftover = $imgleftover_ca; $imglwidth = $imglwidth_ca; $imglheight = $imglheight_ca; $imgright = $imgright_ca; $imgrightover = $imgrightover_ca; $imgrwidth = $imgrwidth_ca; $imgrheight = $imgrheight_ca;
$bgimage = $bgimage_ca; $bgimageover = $bgimageover_ca;
} elseif($mauhienthi[$xmenuchinh[$x]] == "cn") {
$textalignx = $textalignx_cn; $textaligny = $textaligny_cn; $bgcolorout = $bgcolorout_cn; $bgcolorover = $bgcolorover_cn; $borderstyle = $borderstyle_cn; $borderwidth = $borderwidth_cn; $bordertop = $bordertop_cn; $borderright = $borderright_cn; $borderbot = $borderbot_cn; $borderleft = $borderleft_cn;
$bordertopover = $bordertopover_cn; $borderrightover = $borderrightover_cn; $borderbotover = $borderbotover_cn; $borderleftover = $borderleftover_cn; $fontcolorout = $fontcolorout_cn; $fontcolorover = $fontcolorover_cn; $fontsizestyle = $fontsizestyle_cn; $fontsizestyleover = $fontsizestyleover_cn;
$itemwidth = $itemwidth_cn; $itemheight = $itemheight_cn; $imgleft = $imgleft_cn; $imgleftover = $imgleftover_cn; $imglwidth = $imglwidth_cn; $imglheight = $imglheight_cn; $imgright = $imgright_cn; $imgrightover = $imgrightover_cn; $imgrwidth = $imgrwidth_cn; $imgrheight = $imgrheight_cn;
$bgimage = $bgimage_cn; $bgimageover = $bgimageover_cn;
}elseif($mauhienthi[$xmenuchinh[$x]] == "p1a") {
$textalignx = $textalignx_p1a; $textaligny = $textaligny_p1a; $bgcolorout = $bgcolorout_p1a; $bgcolorover = $bgcolorover_p1a; $borderstyle = $borderstyle_p1a; $borderwidth = $borderwidth_p1a; $bordertop = $bordertop_p1a; $borderright = $borderright_p1a; $borderbot = $borderbot_p1a; $borderleft = $borderleft_p1a;
$bordertopover = $bordertopover_p1a; $borderrightover = $borderrightover_p1a; $borderbotover = $borderbotover_p1a; $borderleftover = $borderleftover_p1a; $fontcolorout = $fontcolorout_p1a; $fontcolorover = $fontcolorover_p1a; $fontsizestyle = $fontsizestyle_p1a; $fontsizestyleover = $fontsizestyleover_p1a;
$itemwidth = $itemwidth_p1a; $itemheight = $itemheight_p1a; $imgleft = $imgleft_p1a; $imgleftover = $imgleftover_p1a; $imglwidth = $imglwidth_p1a; $imglheight = $imglheight_p1a; $imgright = $imgright_p1a; $imgrightover = $imgrightover_p1a; $imgrwidth = $imgrwidth_p1a; $imgrheight = $imgrheight_p1a;
$bgimage = $bgimage_p1a; $bgimageover = $bgimageover_p1a;
} elseif($mauhienthi[$xmenuchinh[$x]] == "p1n") {
$textalignx = $textalignx_p1n; $textaligny = $textaligny_p1n; $bgcolorout = $bgcolorout_p1n; $bgcolorover = $bgcolorover_p1n; $borderstyle = $borderstyle_p1n; $borderwidth = $borderwidth_p1n; $bordertop = $bordertop_p1n; $borderright = $borderright_p1n; $borderbot = $borderbot_p1n; $borderleft = $borderleft_p1n;
$bordertopover = $bordertopover_p1n; $borderrightover = $borderrightover_p1n; $borderbotover = $borderbotover_p1n; $borderleftover = $borderleftover_p1n; $fontcolorout = $fontcolorout_p1n; $fontcolorover = $fontcolorover_p1n; $fontsizestyle = $fontsizestyle_p1n; $fontsizestyleover = $fontsizestyleover_p1n;
$itemwidth = $itemwidth_p1n; $itemheight = $itemheight_p1n; $imgleft = $imgleft_p1n; $imgleftover = $imgleftover_p1n; $imglwidth = $imglwidth_p1n; $imglheight = $imglheight_p1n; $imgright = $imgright_p1n; $imgrightover = $imgrightover_p1n; $imgrwidth = $imgrwidth_p1n; $imgrheight = $imgrheight_p1n;
$bgimage = $bgimage_p1n; $bgimageover = $bgimageover_p1n;
} elseif($mauhienthi[$xmenuchinh[$x]] == "p2a") {
$textalignx = $textalignx_p2a; $textaligny = $textaligny_p2a; $bgcolorout = $bgcolorout_p2a; $bgcolorover = $bgcolorover_p2a; $borderstyle = $borderstyle_p2a; $borderwidth = $borderwidth_p2a; $bordertop = $bordertop_p2a; $borderright = $borderright_p2a; $borderbot = $borderbot_p2a; $borderleft = $borderleft_p2a;
$bordertopover = $bordertopover_p2a; $borderrightover = $borderrightover_p2a; $borderbotover = $borderbotover_p2a; $borderleftover = $borderleftover_p2a; $fontcolorout = $fontcolorout_p2a; $fontcolorover = $fontcolorover_p2a; $fontsizestyle = $fontsizestyle_p2a; $fontsizestyleover = $fontsizestyleover_p2a;
$itemwidth = $itemwidth_p2a; $itemheight = $itemheight_p2a; $imgleft = $imgleft_p2a; $imgleftover = $imgleftover_p2a; $imglwidth = $imglwidth_p2a; $imglheight = $imglheight_p2a; $imgright = $imgright_p2a; $imgrightover = $imgrightover_p2a; $imgrwidth = $imgrwidth_p2a; $imgrheight = $imgrheight_p2a;
$bgimage = $bgimage_p2a; $bgimageover = $bgimageover_p2a;
} elseif($mauhienthi[$xmenuchinh[$x]] == "p2n") {
$textalignx = $textalignx_p2n; $textaligny = $textaligny_p2n; $bgcolorout = $bgcolorout_p2n; $bgcolorover = $bgcolorover_p2n; $borderstyle = $borderstyle_p2n; $borderwidth = $borderwidth_p2n; $bordertop = $bordertop_p2n; $borderright = $borderright_p2n; $borderbot = $borderbot_p2n; $borderleft = $borderleft_p2n;
$bordertopover = $bordertopover_p2n; $borderrightover = $borderrightover_p2n; $borderbotover = $borderbotover_p2n; $borderleftover = $borderleftover_p2n; $fontcolorout = $fontcolorout_p2n; $fontcolorover = $fontcolorover_p2n; $fontsizestyle = $fontsizestyle_p2n; $fontsizestyleover = $fontsizestyleover_p2n;
$itemwidth = $itemwidth_p2n; $itemheight = $itemheight_p2n; $imgleft = $imgleft_p2n; $imgleftover = $imgleftover_p2n; $imglwidth = $imglwidth_p2n; $imglheight = $imglheight_p2n; $imgright = $imgright_p2n; $imgrightover = $imgrightover_p2n; $imgrwidth = $imgrwidth_p2n; $imgrheight = $imgrheight_p2n;
$bgimage = $bgimage_p2n; $bgimageover = $bgimageover_p2n;
}

if($imgleft!="") $imgleft = "includes/javascripts/_pgtres/".$imgleft."";
if($imgleftover!="") $imgleftover = "includes/javascripts/_pgtres/".$imgleftover."";
if($imgright!="") $imgright = "includes/javascripts/_pgtres/".$imgright."";
if($imgrightover!="") $imgrightover = "includes/javascripts/_pgtres/".$imgrightover."";
if($bgimage!="") $bgimage = "includes/javascripts/_pgtres/".$bgimage."";
if($bgimageover!="") $bgimageover = "includes/javascripts/_pgtres/".$bgimageover."";
if($x==0) { $stm = "stm_ai"; $stm2 = ""; } else { $stm = "stm_aix"; $stm2 = "\"p0i0\","; }

echo "".$stm."(\"p0i".$x."\",".$stm2."[0,\"".$mtitle."\",\"\",\"\",-1,-1,0,\"".$mlink."\",\"".$mtarget."\",\"\",\"\",\"".$imgleft."\",\"".$imgleftover."\",".$imglwidth.",".$imglheight.",0,\"".$imgright."\",\"".$imgrightover."\",".$imgrwidth.",".$imgrheight.",0,".$textalignx.",".$textaligny.",\"".$bgcolorout."\",0,\"".$bgcolorover."\",0,\"".$bgimage."\",\"".$bgimageover."\",3,3,".$borderstyle.",".$borderwidth.",\"".$bordertop." ".$borderright." ".$borderbot." ".$borderleft."\",\"".$bordertopover." ".$borderrightover." ".$borderbotover." ".$borderleftover."\",\"".$fontcolorout."\",\"".$fontcolorover."\",\"".$fontsizestyle."\",\"".$fontsizestyleover."\",0,0],".$itemwidth.",".$itemheight.");\n";

if($popupview == 1) {
$vvvv = 0;
if($displaymenu==1 AND $tmenu[$xmenuchinh[$x]] == 0 AND $menu_submenu[$xmenuchinh[$x]]!="") { $vvvv = 1; }
if($displaymenu==0 AND $menu_submenu[$xmenuchinh[$x]]!="") { $vvvv = 1; }
if($vvvv == 1) {
$xx++;
$xx = htsubmenu($xx,$menu_id[$xmenuchinh[$x]],0);
}
}
}
echo "stm_ep();\n";
echo "stm_em();\n";
echo "//-->\n";
echo "</script>\n";
echo"</td></tr></table>";
}
}
?>